// 新增AboutFrame.java 
package org.cjlm.ui.ab;
 
import org.cjlm.ui.pub.MInternalFrame; 
import javax.swing.*; 
import java.awt.*; 
 
public class AboutFrame extends MInternalFrame {
    public AboutFrame(String title, boolean max, int width, int height) {
        super(title, max, width, height);
        
        JPanel content = new JPanel(new BorderLayout(10, 10));
        content.setBorder(BorderFactory.createEmptyBorder(20,  20, 20, 20));
        
        // 标题区域 
        JLabel titleLabel = new JLabel("工具箱 v2.0.0.1", SwingConstants.CENTER);
        titleLabel.setFont(new  Font("微软雅黑", Font.BOLD, 24));
        
        // 信息区域
        JPanel infoPanel = new JPanel(new GridLayout(4, 1, 5, 5));
        infoPanel.add(new  JLabel("开发作者：金木"));
        infoPanel.add(new  JLabel("联系邮箱：chenjinglongdeguo@163.com")); 
        infoPanel.add(new  JLabel("发布日期：2025年6月3日"));
        infoPanel.add(new  JLabel("技术支持：Java Swing应用程序"));
        
        // 版权信息
        JLabel copyright = new JLabel("© 2025 CJLM工具箱项目组", SwingConstants.CENTER);
        copyright.setFont(new  Font("宋体", Font.PLAIN, 12));
        
        content.add(titleLabel,  BorderLayout.NORTH);
        content.add(infoPanel,  BorderLayout.CENTER);
        content.add(copyright,  BorderLayout.SOUTH);

        this.setContentPane(content); 
    }
    
    @Override
    public String getDefaultTile() {
        return "关于工具箱";
    }
}